package com.multiplepb.bean;

/**
 *
 */
public enum BrowserEnum {
    google("谷歌浏览器","chrome"),
    edge("Edge浏览器", "msedge");
    private String name;
    private String value;

    BrowserEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getValue() {
        return value;
    }
    public static String parseValue(String name) {
        for (BrowserEnum browserEnum : values()) {
            if (browserEnum.getName().equals(name)) {
                return browserEnum.getValue();
            }
        }
        return BrowserEnum.default_browser.getValue();
    }
    public String getName() {
        return name;
    }

    public static BrowserEnum default_browser = BrowserEnum.google;
}
